package com.zlx.mall.biz.order.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.time.Instant;
import java.util.List;

/**
 * @Author xiatian
 * @Date 2025/3/28 星期五 23:00
 * @注释
 */
@Data
public class OrderListResponse {
    private Long id;
    private String orderNo;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Instant createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Instant competeTime;
    private String status;
    private List<GoodsList> goodsList;
    private String address;
    private String detailAddress;
    private String consignee;
    private String consigneeMobile;

    @Data
    public static class GoodsList{
        private Long id;
        private String goodsName;
        private Long goodsId;
        private BigDecimal salePrice;
        private Integer number;
        private int type;
        private String label;
        private int status;
        private String mainImg;
        private Long subCategoryId;
        private String subCategoryName;
    }
}
